package com.hs.jhzd;

import javax.servlet.MultipartConfigElement;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

import com.hs.jhzd.config.JpaProperties;
import com.hs.jhzd.config.MysqlDatabaseProperties;
import com.hs.jhzd.config.WebMvcConfig;

@SpringBootApplication
@Import({WebMvcConfig.class})
@EnableConfigurationProperties({MysqlDatabaseProperties.class, JpaProperties.class})
@PropertySources({@PropertySource("classpath:application.properties"),
    @PropertySource("classpath:rabbitmq.properties")})
public class JhzdApplication {

  public static void main(String[] args) {
    SpringApplication.run(JhzdApplication.class, args);
  }
}
